package com.bkgy.modular.tpdidata_cal2150.converter;


import com.bkgy.modular.tpdidata_cal2150.entity.TPdiDataCal2150;
import com.bkgy.modular.tpdidata_cal2150.entity.TPdiDataCal2150_bao;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * 宝信实体转换器
 */
@Mapper(unmappedTargetPolicy = org.mapstruct.ReportingPolicy.IGNORE, unmappedSourcePolicy = org.mapstruct.ReportingPolicy.IGNORE, builder = @org.mapstruct.Builder(disableBuilder = true), nullValuePropertyMappingStrategy = org.mapstruct.NullValuePropertyMappingStrategy.IGNORE, nullValueCheckStrategy = org.mapstruct.NullValueCheckStrategy.ALWAYS, componentModel = "default", injectionStrategy = org.mapstruct.InjectionStrategy.CONSTRUCTOR, uses = {}, imports = {}, collectionMappingStrategy = org.mapstruct.CollectionMappingStrategy.ACCESSOR_ONLY, implementationName = "<CLASS_NAME>Impl", implementationPackage = "<PACKAGE_NAME>", mappingInheritanceStrategy = org.mapstruct.MappingInheritanceStrategy.EXPLICIT)
public interface TPdiDataCal2150Converter {

    TPdiDataCal2150Converter INSTANCE = Mappers.getMapper(TPdiDataCal2150Converter.class);

    @Mapping(source = "entid", target = "entid")
    @Mapping(source = "hot_coil_id", target = "hotCoilId")
    @Mapping(source = "mthick", target = "inMatThk")
    @Mapping(source = "mwidth", target = "inMatWidth")
    @Mapping(source = "mweight", target = "inMatWt")
    @Mapping(source = "mlength", target = "inMatLen")
    @Mapping(source = "mindia", target = "inMatInnerDia")
    @Mapping(source = "moutdia", target = "inMatOuterDia")
    @Mapping(source = "n_dmyflag", target = "dumyflag")
    @Mapping(source = "c_stlgrd", target = "steelgrade")
    @Mapping(source = "n_genstlgrd", target = "tenCode")
    @Mapping(source = "c_genstlgrd", target = "tenGrade")
    @Mapping(source = "n_wldstlgrd", target = "weldCode")
    @Mapping(source = "c_wldstlgrd", target = "weldGrade")
    @Mapping(source = "n_ptstlgrd", target = "heatno")
    @Mapping(source = "c_ptstlgrd", target = "heatnoGrade")
    @Mapping(source = "n_rollstlgrd", target = "spmCode")
    @Mapping(source = "c_rollstlgrd", target = "spmGrade")
    @Mapping(source = "n_curveid", target = "furTenPayCode")
    @Mapping(source = "n_heatcyclecode", target = "furTenCode")
    @Mapping(source = "n_repairflag", target = "repairflag")
    @Mapping(source = "n_sleevemode", target = "sleevemode")
    @Mapping(source = "c_orderno", target = "orderno")
    @Mapping(source = "n_delthk", target = "exthkAim")
    @Mapping(source = "n_delwid", target = "exwidthAim")
    @Mapping(source = "n_dellen", target = "exlenAim")
    @Mapping(source = "i_delcoilwttarg", target = "exwtAim")
    @Mapping(source = "n_delindia", target = "outMatInnerDia")
    @Mapping(source = "n_deloutdia", target = "outMatOuterDia")
    @Mapping(source = "c_stmode", target = "trimmode")
    @Mapping(source = "n_stwid", target = "trimWidth")
    @Mapping(source = "n_trimflag", target = "trimflag")
    @Mapping(source = "n_sampleflag", target = "sampleflag")
    @Mapping(source = "c_sampleorder", target = "sampleorder")
    @Mapping(source = "c_sampleplace", target = "samplepos")
    @Mapping(source = "n_samplelen", target = "samplelen")
    @Mapping(source = "c_samplecode", target = "samplerate")
    @Mapping(source = "c_spmuse", target = "spmuse")
    @Mapping(source = "n_spmrough", target = "spmtime")
    @Mapping(source = "c_oilkind", target = "oiltype")
    @Mapping(source = "c_oilcode", target = "oilcode")
    @Mapping(source = "n_oilamount", target = "oilamount")
    @Mapping(source = "c_prelinecode", target = "preprocess")
    @Mapping(source = "c_nextlinecode", target = "nextprocess")
    @Mapping(source = "c_smooth", target = "distribution")
    @Mapping(source = "c_flatcode", target = "flatcode")
    @Mapping(source = "c_spmcustcode", target = "spmMode")
    @Mapping(source = "n_elongtarg", target = "elongAim")
    @Mapping(source = "n_roughtarg", target = "roughAim")
    @Mapping(source = "n_roughmax", target = "roughMax")
    @Mapping(source = "n_roughmin", target = "roughMin")
    @Mapping(source = "n_thickofgheadlen", target = "thkHeadToleLen")
    @Mapping(source = "n_thickofgheadave", target = "thkHeadToleAvg")
    @Mapping(source = "n_thickofgheadmin", target = "thkHeadToleMin")
    @Mapping(source = "n_thickofgheadmax", target = "thkHeadToleMax")
    @Mapping(source = "n_thickofgtaillen", target = "thkTailToleLen")
    @Mapping(source = "n_thickofgtailave", target = "thkTailToleAvg")
    @Mapping(source = "n_thickofgtailmin", target = "thkTailToleMin")
    @Mapping(source = "n_thickofgtailmax", target = "thkTailToleMax")
    @Mapping(source = "c_custcode", target = "packageCode")
    @Mapping(expression = "java(com.bkgy.util.DateUtil.getdatetostring(bao.getToc()))", target = "toc")
    @Mapping(expression = "java(com.bkgy.util.DateUtil.getdatetostring(bao.getTom()))", target = "tom")
    @Mapping(source = "mop", target = "mop")
    @Mapping(source = "mou", target = "mou")
    @Mapping(target = "prodFlag", ignore = true)
    @Mapping(target = "enthkClass", ignore = true)
    @Mapping(target = "exthkClass", ignore = true)
    @Mapping(target = "enwidthClass", ignore = true)
    @Mapping(target = "exwidthClass", ignore = true)
    @Mapping(target = "ypClass", ignore = true)
    @Mapping(target = "createTime", expression = "java(new java.util.Date())")
    @Mapping(target = "indocno", ignore = true)
    @Mapping(source = "order_thick", target = "orderThick")
    @Mapping(source = "order_width", target = "orderWidth")
    @Mapping(source = "order_unit_wt_min", target = "orderUnitMinWt")
    @Mapping(source = "order_unit_wt_max", target = "orderUnitMaxWt")
    @Mapping(source = "exwidth", target = "outMatWidth")
    @Mapping(source = "exwidth_min", target = "outMatMinWidth")
    @Mapping(source = "exwidth_max", target = "outMatMaxWidth")
    @Mapping(source = "sampleratecode", target = "sampleFrqnCode")
    @Mapping(source = "surface_accu_code", target = "surfaceAccuCode")
    @Mapping(source = "order_inner_dia", target = "orderInnerDia")
    @Mapping(source = "fin_cust_cname", target = "finCustCname")
    @Mapping(source = "defect_mark", target = "surfDefectMark1")
    @Mapping(source = "hour_wt", target = "outputPh")
    @Mapping(source = "preduration", target = "outputSe")
    TPdiDataCal2150 toTPdiDataCal2150(TPdiDataCal2150_bao bao);
}
